import request from '@/utils/request'

// 查询付款单明细列表
export function listPaymentOrderItem(query) {
  return request({
    url: '/finance/paymentOrderItem/list',
    method: 'post',
    data: query
  })
}

// 查询付款单明细详细
export function getPaymentOrderItem(id) {
  return request({
    url: '/finance/paymentOrderItem/' + id,
    method: 'get'
  })
}

// 新增付款单明细
export function addPaymentOrderItem(data) {
  return request({
    url: '/finance/paymentOrderItem/add',
    method: 'post',
    data: data
  })
}

// 修改付款单明细
export function updatePaymentOrderItem(data) {
  return request({
    url: '/finance/paymentOrderItem/update',
    method: 'post',
    data: data
  })
}

// 删除付款单明细
export function delPaymentOrderItem(id) {
  return request({
    url: '/finance/paymentOrderItem/delete/' + id,
    method: 'post'
  })
}
